package com.uit.httt04.duongvanlam.facedetection.utils;

import android.os.Environment;

public class Configuration
{
	// front facing = true or back facing = false
	public static final boolean frontCamera = true;
	// camera's height
	public static final int cameraHeight = 240;
	// camera's width
	public static final int cameraWidth = 320;
	// Because using ImageFormat NV21 <-> YUV420 so 1 pixel has 12 bit = 1.5
	// byte
	public static final double cameraBytePerPixel = 1.5;
	// While detection, 1 time has maximum 1 faces
	public static final int maxFacesToDetect = 1;
	// While detection for training, 1 time has maximum 1 faces
	public static final int maxFacesToDetetForTraining = 1;
	// maximum image per face for training
	public static final int maxImagesPerFaceToTraining = 10;
	//
	public static final int NEigenvector = 5;
	//
	public static final int imageWidthMinSize = 100;
	//
	public static final int imageHeightMinSize = 100;
	//
	public static final int imageWidthMaxSize = 140;
	//
	public static final int imageHeightMaxSize = 140;
	//
	public static final int imageWidthTraining = 168;
	//
	public static final int imageHeightTraining = 192;
	//
	public static final char MatrixDataSplitBy = '_';
	//
	public static final String SimpleDateFormatPattern = "dd/MM/yyyy hh:mm:ss.SSS";
	//
	public static final String SavedExt = ".JPG";
	//
	public static final String AllowedExt = "JPG";
	//
	public static final double round2Decimal = 100.0;
	//
	public static final double rounded = 0.9;
	//
	//
	// <-- Folders's Path
	//
	//
	private static final String appFolderName = "FaceDetection";
	public static final String appFolderPath = Environment.getExternalStoragePublicDirectory(appFolderName).getAbsolutePath();
	//
	public static final String xmlFolderName = "data";
	public static final String xmlFolderPath = appFolderPath + "/" + xmlFolderName;
	public static final String xmlFileName = "haarcascade_frontalface_alt.xml";
	public static final String xmlFilePath = xmlFolderPath + "/" + xmlFileName;
	//
	private static final String trainingFolderName = "training";
	public static final String trainingFolderPath = appFolderPath + "/" + trainingFolderName;
	//
	private static final String detectionFolderName = "detection";
	public static final String detectionFolderPath = appFolderPath + "/" + detectionFolderName;
	//
	public static final String logFolderName = "log";
	public static final String logFolderPath = appFolderPath + "/" + logFolderName;
	public static final String logFileName = "error.txt";
	public static final String logFilePath = logFolderPath + "/" + logFileName;
	//
	public static final String trainingFileName = "training.xml";
	public static final String TrainingFilePath = trainingFolderPath + "/" + trainingFileName;
	//
	// Folders's Path -->
	//
}
